//
//  UIButton+WP.m
//  WeiXin
//
//  Created by admin on 16/5/11.
//  Copyright © 2016年 admin. All rights reserved.
//

#import "UIButton+WP.h"
#import "UIImage+WP.h"

@implementation UIButton (WP)
-(void)setN_BG:(NSString *)nbg H_BG:(NSString *)hbg{
    [self setBackgroundImage:[UIImage imageNamed:nbg]
                    forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage imageNamed:hbg]
                    forState:UIControlStateHighlighted];
}

- (void)setResizeN_BG:(NSString *)nbg H_BG:(NSString *)hbg {
    [self setBackgroundImage:[UIImage stretchedImageWithName:nbg]
                    forState:UIControlStateNormal];
    [self setBackgroundImage:[UIImage stretchedImageWithName:hbg]
                    forState:UIControlStateHighlighted];
}

@end
